/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author 4202L
 */
public class HuffmanTreeTest {
    
    public HuffmanTreeTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of initFrecuencia method, of class HuffmanTree.
     */
    @Test
    public void testInitFrecuencia() {
        System.out.println("initFrecuencia");
        HuffmanTree instance = new HuffmanTree();
        instance.initFrecuencia();
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of initArbol method, of class HuffmanTree.
     */
    @Test
    public void testInitArbol() {
        System.out.println("initArbol");
        HuffmanTree instance = new HuffmanTree();
        instance.initArbol();
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of initHuffmanTree method, of class HuffmanTree.
     */
    @Test
    public void testInitHuffmanTree() {
        System.out.println("initHuffmanTree");
        HuffmanTree instance = new HuffmanTree();
        instance.initHuffmanTree();
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of agregarArbol method, of class HuffmanTree.
     */
    @Test
    public void testAgregarArbol() {
        System.out.println("agregarArbol");
        Arbol<Cadena> carac = null;
        HuffmanTree instance = new HuffmanTree();
        instance.agregarArbol(carac);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of initCodigo method, of class HuffmanTree.
     */
    @Test
    
    public void testInitCodigo() {
        System.out.println("initCodigo");
        String str="hola";
        HuffmanTree instance = new HuffmanTree();
        instance.procesar(str);
        
        //instance.initCodigo()
        //System.out.println("initCodigo");
       //HuffmanTree instance = new HuffmanTree();
       // instance.initCodigo();
        // TODO review the generated test code and remove the default call to fail.
       // fail("The test case is a prototype.");
    }

    /**
     * Test of procesar method, of class HuffmanTree.
     */
    @Test
    public void testProcesar() {
        System.out.println("procesar");
        String str = "hola";
        HuffmanTree instance = new HuffmanTree();
        instance.procesar(str);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of toString method, of class HuffmanTree.
     */
    @Test
    public void testToString() {
        System.out.println("initCodigo");
        String result="hola";
  
        System.out.println("toString");
        HuffmanTree instance = new HuffmanTree();
        String expResult = "hola";
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }
}